package com.axjc.gqzr.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @TableName sys_token
 */
@TableName(value = "sys_token")
@Data
@Getter
@Setter
public class SysToken implements Serializable {
    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private long id;

    /**
     *
     */
    @TableField(value = "token")
    private String token;

    /**
     *
     */
    @TableField(value = "tokenType")
    private Integer tokenType;

    /**
     *
     */
    @TableField(value = "revoked")
    private Boolean revoked;

    /**
     *
     */
    @TableField(value = "expired")
    private Boolean expired;

    /**
     *
     */
    @TableField(value = "user_id")
    private Long user_id;

    @TableField(exist = false)
    private SysUser user;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}